//
//  BaseTableViewController.swift
//  SinaWeiBo
//
//  Created by moon on 15/10/6.
//  Copyright © 2015年 moon. All rights reserved.
//

import UIKit

class BaseTableViewController: UITableViewController,VisitorLoginViewDelegate {

    var visitorLoginView:VisitorLoginView?
    
    
    override func loadView() {
        
visitorLoginView = NSBundle.mainBundle().loadNibNamed("VisitorLoginView", owner: nil, options: nil).last as? VisitorLoginView
        
        visitorLoginView?.visitorDelegate=self
        
        view=visitorLoginView
        
        self.navigationItem.leftBarButtonItem=UIBarButtonItem(title: "注册", style: UIBarButtonItemStyle.Plain, target: self, action: "visitorWillRegister")
        
        
        
        self.navigationItem.rightBarButtonItem=UIBarButtonItem(title: "登陆", style: UIBarButtonItemStyle.Plain, target: self, action: "visitorWillLogin")
  
        
    }
    
    func visitorWillRegister() {
        
        
        
        
        
    }
    
    
    func visitorWillLogin() {
        
        
        
        
    }
    
    
    override func viewDidLoad() {
        super.viewDidLoad()

 
        
        
    }

  

}
